package com.zh.modules.app.mapper;

import com.zh.modules.app.entity.UserDO;
import com.zh.generator.core.DefaultMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author zh
 * @since 2024-03-11
 */
@Mapper
public interface UserMapper extends DefaultMapper<UserDO> {

    int deductBalance(@Param(value = "userId") Integer userId,@Param(value = "amount") Integer amount);
}
